package com.yjx.util;

import com.yjx.conent.ResultCode;

public class ResultUtil {
    public static Result successResult() {
        return new Result(ResultCode.SUCCESS_CODE,ResultCode.SUCCESS_MSG);
    }

    public static Result successDataResult(Object data) {
        return new Result(ResultCode.SUCCESS_CODE, ResultCode.SUCCESS_MSG, data);

    }
    public static Result errorResult(String code, String msg) {
        return new Result(code, msg);
    }
}
